package com.mbc.hr.entities;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

import javax.persistence.Cacheable;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;
import javax.persistence.Transient;

@SuppressWarnings("serial")
@Entity
@Table(name="hr_attendancepolicy")
@NamedQueries({
	@NamedQuery(name="AttendancePolicy.findAll",query="SELECT ap FROM AttendancePolicy ap")
})
public class AttendancePolicy implements Serializable {
	@Id
	private long attendancePolicyID;
	private String policyCode;
	private String description;
	private long createdBy;
	private Date createdDate;
	private Long modifiedBy;
	private Date modifiedDate;
	private long attendancePenaltyID;
	
	@Transient
	private List<AttendancePolicyDetail> details;
	
	public long getAttendancePolicyID() {
		return attendancePolicyID;
	}
	public void setAttendancePolicyID(long attendancePolicyID) {
		this.attendancePolicyID = attendancePolicyID;
	}
	public String getPolicyCode() {
		return policyCode;
	}
	public void setPolicyCode(String policyCode) {
		this.policyCode = policyCode;
	}
	public String getDescription() {
		return description;
	}
	public void setDescription(String description) {
		this.description = description;
	}
	public long getCreatedBy() {
		return createdBy;
	}
	public void setCreatedBy(long createdBy) {
		this.createdBy = createdBy;
	}
	public Date getCreatedDate() {
		return createdDate;
	}
	public void setCreatedDate(Date createdDate) {
		this.createdDate = createdDate;
	}
	public Long getModifiedBy() {
		return modifiedBy;
	}
	public void setModifiedBy(Long modifiedBy) {
		this.modifiedBy = modifiedBy;
	}
	public Date getModifiedDate() {
		return modifiedDate;
	}
	public void setModifiedDate(Date modifiedDate) {
		this.modifiedDate = modifiedDate;
	}
	public List<AttendancePolicyDetail> getDetails() {
		return details;
	}
	public void setDetails(List<AttendancePolicyDetail> details) {
		this.details = details;
	}
	public long getAttendancePenaltyID() {
		return attendancePenaltyID;
	}
	public void setAttendancePenaltyID(long attendancePenaltyID) {
		this.attendancePenaltyID = attendancePenaltyID;
	}
}
